var count = 0;
function ajaxRequest(url, value) {
	count++;
	var http_request = false;

    if (window.XMLHttpRequest) {				// Mozilla and Safari Support
        http_request = new XMLHttpRequest();
        if (http_request.overrideMimeType) {
            http_request.overrideMimeType('text/xml');
        }
    } else if (window.ActiveXObject) {			// Microsoft Internet Explorer
        try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
        }
    }
    
    if (!http_request) {
        alert('Cannot instantiate AJAX. Please verify you are running a compliant browser.');
        return false;
    }
    http_request.onreadystatechange = function() { ajaxResponse(http_request); };
    http_request.open('GET', url + '&count=' + count, true);
    http_request.send(null);
}

function ajaxResponse(http_request) {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			if (http_request.responseText != 'null') {
				eval(trim(http_request.responseText));
			}
		} else {
			alert('An error occurred while attempting to communicate with the server: ' + http_request.status);
		}
		return true;
	}
}